function T = nonnanrow_num(X)
% Find all non-nan rows
X_nonnan = X(sum(~isnan(X) , 2) == size(X , 2) , :);

T = size(X_nonnan,1);
end